From: Owen W. Taylor Date: Tue, 27 Oct 2015 19:51:13 +0000 (-0400) Subject: run-js-test: fix running in hi-dpi mode X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~814 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=c4584c20dc6c8a91ed3df31230c2ebb3e24cb803;p=gnome-shell.git run-js-test: fix running in hi-dpi mode --- diff --git a/src/run-js-test.c b/src/run-js-test.c index b90c0b6f6..bd76d9568 100644 --- a/src/run-js-test.c +++ b/src/run-js-test.c @@ -59,6 +59,8 @@ main(int argc, char **argv) gsize len; int code; + gdk_set_allowed_backends("x11"); + gtk_init (&argc, &argv); clutter_x11_set_display (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ())); @@ -66,6 +68,9 @@ main(int argc, char **argv) if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS) return 1; + g_object_set (clutter_settings_get_default (), "window-scaling-factor", 1, NULL); + gdk_x11_display_set_window_scale (gdk_display_get_default (), 1); + context = g_option_context_new (NULL); /* pass unknown through to the JS script */